﻿@model ZBJF.Warranty.Model.ViewModel.PageActionManager.SystemUserModel
@using (Html.BeginForm("ModifyPassword", "Login", FormMethod.Post,new{@class="padding-10"}))
{
    @Html.HiddenFor(m => m.ID)
    <div class="control-group">
        <label class="control-label w120">用户账号:</label>
        @Html.DisplayFor(m => m.UserAccount, new { @class = "col-sm-8", validate = "{required:true,messages:{required:'请输入账号名'}}" })
    </div>
    <div class="control-group">
        <label class="control-label w120">旧密码:</label>
        @Html.PasswordFor(m => m.Password, new { @class = "col-sm-8", validate = "{required:true,messages:{required:'请输入密码'}}" })

    </div>
    <div class="control-group">
        <label class="control-label w120">新密码:</label>
        @Html.PasswordFor(m => m.NewPassword, new { @class = "col-sm-8", validate = "{required:true,minlength:6,messages:{required:'请输入密码'}}" })

    </div>
    <div class="control-group">
        <label class="control-label w120">确认密码:</label>
        @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "col-sm-8", validate = "{required:true,equalTo:NewPassword,minlength:6,messages:{required:'请输入密码'}}" })
    </div>
    <div class="control-group">
        <div class="align-center">
            <button class="btn btn-primary Edit-R" type="submit">
                <i class="icon-ok bigger-110"></i>
                保存
            </button>
            <button class="btn" type="button" onclick="parent.layer.closeAll()" data-dismiss="modal">
                <i class="icon-undo bigger-110"></i>
                取消
            </button>
        </div>
    </div>
}

